<template>
  <view class="page">
    <view class="card">
      <view
        class="row"
        v-for="(item, index) of cards"
        :key="index"
        @tap="onCheckCard(item)"
      >
        <view>{{ item.title }}</view>
      </view>
    </view>
    <PopupLogin />
  </view>
</template>

<script setup>
import { getCurrentInstance, reactive, ref, nextTick } from "vue";
import { onLoad, onShow, onHide, onReady } from "@dcloudio/uni-app";
import { cards } from "./config";
import BasicConfig from "@/utils/config";
import { jumpPage } from "../../../utils/route/route";
const Instance = getCurrentInstance();
const $vm = Instance?.appContext.config.globalProperties;
const $data = reactive({});
onLoad((options) => {});
onReady(() => {});
const onCheckCard = (e) => {
  if (!e.path) return;
  jumpPage({
    to: e.path,
  });
};
</script>

<style lang="scss" scoped>
.page {
  background: #f4f8fb;
  width: 100vw;
  min-height: 100vh;
}
</style>
